﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace ClockSync2
{
    [Serializable]
    public class ElectionStartedException : Exception
    {
        public string UUID = "";
        public Neighbour NeighbourPointer;

        // Optional Constructors
        public ElectionStartedException(string UUID, Neighbour n) : base()
        {
            this.UUID = UUID;
            this.NeighbourPointer = n;
        }

        public ElectionStartedException(SerializationInfo info, StreamingContext ctxt)
            : base(info, ctxt)
        { }
    }
}
